﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//using System.Drawing;
using System.Windows;
//using System.Windows.Controls;

using SpotItComponents;
using SpotItServerAPI;
using System.Drawing;

namespace AppLayer
{
    public class SymbolSetPopulator
    {
        private Session session;
        private Services services;

        public SymbolSetPopulator(Session session, Services services)
        {
            this.session = session;
            this.services = services;
        }

        public void populateSet(SymbolSet set, List<Bitmap> images)
        {
            set.RemoveAllSymbols();
            int count = 1;
            foreach (Bitmap i in images)
            {
                set.AddSymbol(Symbol.CreateSymbolWithLabelImage("Symbol " + count, i));
                count++;
            }
            services.symbolManager.Update(session, set);
        }
    }
}
